import http from "./http"
// http://localhost:12345/api/user/register
export const registerApi=(username,password)=>{
    return http({
        url:' http://localhost:12345/api/user/register',
        method:'POST',
        data:{
            username,
            password
        }
    })
}
//  http://localhost:12345/api/user/login
export const loginApi=(username,password)=>{
    return http({
        url:' http://localhost:12345/api/user/login',
        method:'POST',
        data:{
            username,
            password
        }
    })
}
// 导航https://api-hmugo-web.itheima.net/api/public/v1/home/catitems
export const catitemsApi=()=>{
    return http({
        url:' https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
        method:'get',
    })
}
// 楼层https://api-hmugo-web.itheima.net/api/public/v1/home/floordata
export const floordataApi=()=>{
    return http({
        url:' https://api-hmugo-web.itheima.net/api/public/v1/home/floordata',
        method:'get',
    })
}